home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / (Demos) / LuminanceRecord1.h < prev    next >
MacBinary  |  1994-10-17  |  3.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: LuminanceRecord1.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Oct 17 14:04:57 1994, modified Mon Oct 17 14:04:57 1994, creator 'CWIE', type ASCII, 3189 bytes "LuminanceRecord1.h" , at 0xcf5 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |..Lumina|nceRecor|
|00000010| 64 31 2e 68 00 00 00 00 | 00 00 00 00 00 00 00 00 |d1.h....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0c 75 00 | 00 01 ac aa c8 6d 49 aa |......u.|.....mI.|
|00000060| c8 6d 49 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.mI.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 77 7a 00 00 |........|....wz..|
|00000080| 2f 2a 20 54 68 69 73 20 | 4c 75 6d 69 6e 61 6e 63 |/* This |Luminanc|
|00000090| 65 52 65 63 6f 72 64 31 | 2e 68 20 66 69 6c 65 20 |eRecord1|.h file |
|000000a0| 69 73 20 61 20 64 65 73 | 63 72 69 70 74 69 6f 6e |is a des|cription|
|000000b0| 20 6f 66 20 61 20 6d 6f | 6e 69 74 6f 72 20 70 72 | of a mo|nitor pr|
|000000c0| 6f 64 75 63 65 64 20 62 | 79 20 74 68 65 20 43 61 |oduced b|y the Ca|
|000000d0| 6c 69 62 72 61 74 65 4c | 75 6d 69 6e 61 6e 63 65 |librateL|uminance|
|000000e0| 20 70 72 6f 67 72 61 6d | 2e 20 2a 2f 0d 2f 2a 20 | program|. */./* |
|000000f0| 54 68 69 73 20 66 69 6c | 65 20 6d 61 79 20 62 65 |This fil|e may be|
|00000100| 20 23 69 6e 63 6c 75 64 | 65 64 20 69 6e 20 61 6e | #includ|ed in an|
|00000110| 79 20 43 20 70 72 6f 67 | 72 61 6d 2e 20 49 74 20 |y C prog|ram. It |
|00000120| 73 69 6d 70 6c 79 20 66 | 69 6c 6c 73 20 69 6e 20 |simply f|ills in |
|00000130| 61 20 4c 75 6d 69 6e 61 | 6e 63 65 52 65 63 6f 72 |a Lumina|nceRecor|
|00000140| 64 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |d data s|tructure|
|00000150| 2e 20 2a 2f 0d 2f 2a 20 | 54 68 65 20 74 68 65 6f |. */./* |The theo|
|00000160| 72 79 20 69 73 20 64 65 | 73 63 72 69 62 65 64 20 |ry is de|scribed |
|00000170| 62 79 20 50 65 6c 6c 69 | 20 26 20 5a 68 61 6e 67 |by Pelli| & Zhang|
|00000180| 20 28 31 39 39 31 29 2e | 20 54 68 65 20 64 61 74 | (1991).| The dat|
|00000190| 61 20 73 74 72 75 63 74 | 75 72 65 20 69 73 20 64 |a struct|ure is d|
|000001a0| 65 66 69 6e 65 64 20 69 | 6e 20 4c 75 6d 69 6e 61 |efined i|n Lumina|
|000001b0| 6e 63 65 2e 68 2e 20 20 | 2a 2f 0d 2f 2a 20 43 61 |nce.h. |*/./* Ca|
|000001c0| 6c 69 62 72 61 74 65 4c | 75 6d 69 6e 61 6e 63 65 |librateL|uminance|
|000001d0| 20 61 6e 64 20 4c 75 6d | 69 6e 61 6e 63 65 2e 68 | and Lum|inance.h|
|000001e0| 20 61 72 65 20 70 61 72 | 74 20 6f 66 20 74 68 65 | are par|t of the|
|000001f0| 20 56 69 64 65 6f 54 6f | 6f 6c 62 6f 78 20 73 6f | VideoTo|olbox so|
|00000200| 66 74 77 61 72 65 2e 20 | 2a 2f 0d 2f 2a 20 50 65 |ftware. |*/./* Pe|
|00000210| 6c 6c 69 20 26 20 5a 68 | 61 6e 67 20 28 31 39 39 |lli & Zh|ang (199|
|00000220| 31 29 20 41 63 63 75 72 | 61 74 65 20 63 6f 6e 74 |1) Accur|ate cont|
|00000230| 72 6f 6c 20 6f 66 20 63 | 6f 6e 74 72 61 73 74 20 |rol of c|ontrast |
|00000240| 6f 6e 20 6d 69 63 72 6f | 63 6f 6d 70 75 74 65 72 |on micro|computer|
|00000250| 20 64 69 73 70 6c 61 79 | 73 2e 20 2a 2f 0d 2f 2a | display|s. */./*|
|00000260| 20 56 69 73 69 6f 6e 20 | 52 65 73 65 61 72 63 68 | Vision |Research|
|00000270| 2c 20 33 31 3a 31 33 33 | 37 2d 31 33 36 30 2e 20 |, 31:133|7-1360. |
|00000280| 2a 2f 0d 2f 2a 20 54 68 | 65 20 56 69 64 65 6f 54 |*/./* Th|e VideoT|
|00000290| 6f 6f 6c 62 6f 78 20 73 | 6f 66 74 77 61 72 65 20 |oolbox s|oftware |
|000002a0| 69 73 20 61 76 61 69 6c | 61 62 6c 65 2c 20 66 72 |is avail|able, fr|
|000002b0| 65 65 20 66 6f 72 20 72 | 65 73 65 61 72 63 68 20 |ee for r|esearch |
|000002c0| 70 75 72 70 6f 73 65 73 | 2c 20 66 72 6f 6d 20 44 |purposes|, from D|
|000002d0| 65 6e 69 73 20 50 65 6c | 6c 69 2e 20 2a 2f 0d 2f |enis Pel|li. */./|
|000002e0| 2a 20 49 6e 73 74 69 74 | 75 74 65 20 66 6f 72 20 |* Instit|ute for |
|000002f0| 53 65 6e 73 6f 72 79 20 | 52 65 73 65 61 72 63 68 |Sensory |Research|
|00000300| 2c 20 53 79 72 61 63 75 | 73 65 20 55 6e 69 76 65 |, Syracu|se Unive|
|00000310| 72 73 69 74 79 2c 20 53 | 79 72 61 63 75 73 65 2c |rsity, S|yracuse,|
|00000320| 20 4e 59 20 31 33 32 34 | 34 2d 35 32 39 30 2e 20 | NY 1324|4-5290. |
|00000330| 2a 2f 0d 4c 52 2e 73 63 | 72 65 65 6e 3d 31 3b 09 |*/.LR.sc|reen=1;.|
|00000340| 2f 2a 20 64 65 76 69 63 | 65 3d 47 65 74 53 63 72 |/* devic|e=GetScr|
|00000350| 65 65 6e 44 65 76 69 63 | 65 28 4c 52 2e 73 63 72 |eenDevic|e(LR.scr|
|00000360| 65 65 6e 29 3b 20 2a 2f | 0d 2f 2a 20 43 61 75 74 |een); */|./* Caut|
|00000370| 69 6f 6e 3a 20 74 68 65 | 20 73 63 72 65 65 6e 20 |ion: the| screen |
|00000380| 6e 75 6d 62 65 72 20 75 | 73 65 64 20 68 65 72 65 |number u|sed here|
|00000390| 20 61 6e 64 20 69 6e 20 | 47 65 74 53 63 72 65 65 | and in |GetScree|
|000003a0| 6e 20 44 65 76 69 63 65 | 20 69 73 20 4e 4f 54 20 |n Device| is NOT |
|000003b0| 74 68 65 20 73 61 6d 65 | 20 61 73 20 2a 2f 0d 2f |the same| as */./|
|000003c0| 2a 20 64 69 73 70 6c 61 | 79 65 64 20 62 79 20 74 |* displa|yed by t|
|000003d0| 68 65 20 4d 6f 6e 69 74 | 6f 72 73 20 63 64 65 76 |he Monit|ors cdev|
|000003e0| 20 69 6e 20 74 68 65 20 | 43 6f 6e 74 72 6f 6c 20 | in the |Control |
|000003f0| 50 61 6e 65 6c 2e 20 53 | 6f 72 72 79 2e 20 54 68 |Panel. S|orry. Th|
|00000400| 65 20 6d 6f 73 74 20 6f | 62 76 69 6f 75 73 20 64 |e most o|bvious d|
|00000410| 69 66 66 65 72 65 6e 63 | 65 20 2a 2f 0d 2f 2a 20 |ifferenc|e */./* |
|00000420| 69 73 20 74 68 61 74 20 | 47 65 74 53 63 72 65 65 |is that |GetScree|
|00000430| 6e 44 65 76 69 63 65 20 | 61 6c 77 61 79 73 20 61 |nDevice |always a|
|00000440| 73 73 69 67 6e 73 20 30 | 20 74 6f 20 74 68 65 20 |ssigns 0| to the |
|00000450| 6d 61 69 6e 20 73 63 72 | 65 65 6e 2c 20 74 68 65 |main scr|een, the|
|00000460| 20 6f 6e 65 20 77 69 74 | 68 20 74 68 65 20 6d 65 | one wit|h the me|
|00000470| 6e 75 20 62 61 72 2e 20 | 2a 2f 0d 4c 52 2e 64 61 |nu bar. |*/.LR.da|
|00000480| 74 65 3d 22 33 3a 30 39 | 20 50 4d 20 46 72 69 64 |te="3:09| PM Frid|
|00000490| 61 79 2c 20 4f 63 74 6f | 62 65 72 20 31 36 2c 20 |ay, Octo|ber 16, |
|000004a0| 31 39 39 32 22 3b 0d 4c | 52 2e 69 64 3d 22 35 31 |1992";.L|R.id="51|
|000004b0| 31 31 37 36 37 22 3b 0d | 4c 52 2e 6e 61 6d 65 3d |11767";.|LR.name=|
|000004c0| 22 73 69 67 6e 61 6c 22 | 3b 0d 4c 52 2e 6e 6f 74 |"signal"|;.LR.not|
|000004d0| 65 73 3d 22 6d 61 6e 6f | 6a 2c 20 6c 69 67 68 74 |es="mano|j, light|
|000004e0| 73 20 6f 66 66 2c 20 70 | 68 6f 74 6f 6d 65 74 65 |s off, p|hotomete|
|000004f0| 72 20 31 20 69 6e 63 68 | 20 66 72 6f 6d 20 73 63 |r 1 inch| from sc|
|00000500| 72 65 65 6e 22 3b 0d 4c | 52 2e 64 70 69 3d 37 36 |reen";.L|R.dpi=76|
|00000510| 2e 30 3b 09 2f 2a 20 70 | 69 78 65 6c 73 20 70 65 |.0;./* p|ixels pe|
|00000520| 72 20 69 6e 63 68 20 2a | 2f 0d 4c 52 2e 48 7a 3d |r inch *|/.LR.Hz=|
|00000530| 36 36 2e 36 37 3b 09 2f | 2a 20 66 72 61 6d 65 73 |66.67;./|* frames|
|00000540| 20 70 65 72 20 73 65 63 | 6f 6e 64 20 2a 2f 0d 4c | per sec|ond */.L|
|00000550| 52 2e 75 6e 69 74 73 3d | 22 63 64 2f 6d 5e 32 22 |R.units=|"cd/m^2"|
|00000560| 3b 0d 2f 2a 20 63 6f 65 | 66 66 69 63 69 65 6e 74 |;./* coe|fficient|
|00000570| 73 20 6f 66 20 70 6f 6c | 79 6e 6f 6d 69 61 6c 20 |s of pol|ynomial |
|00000580| 66 69 74 20 2a 2f 0d 4c | 52 2e 63 6f 65 66 66 69 |fit */.L|R.coeffi|
|00000590| 63 69 65 6e 74 73 3d 39 | 3b 09 2f 2a 20 23 20 6f |cients=9|;./* # o|
|000005a0| 66 20 63 6f 65 66 66 69 | 63 69 65 6e 74 73 20 69 |f coeffi|cients i|
|000005b0| 6e 20 70 6f 6c 79 6e 6f | 6d 69 61 6c 20 66 69 74 |n polyno|mial fit|
|000005c0| 20 2a 2f 0d 2f 2a 20 4c | 28 56 29 3d 70 5b 30 5d | */./* L|(V)=p[0]|
|000005d0| 2b 70 5b 31 5d 2a 56 2b | 70 5b 32 5d 2a 56 2a 56 |+p[1]*V+|p[2]*V*V|
|000005e0| 2b 20 2e 20 2e 20 2e 20 | b1 70 6f 6c 79 6e 6f 6d |+ . . . |.polynom|
|000005f0| 69 61 6c 45 72 72 6f 72 | 20 2a 2f 0d 4c 52 2e 70 |ialError| */.LR.p|
|00000600| 5b 30 5d 3d 31 2e 32 38 | 32 30 31 65 2d 31 34 3b |[0]=1.28|201e-14;|
|00000610| 0d 4c 52 2e 70 5b 31 5d | 3d 38 2e 32 35 37 37 36 |.LR.p[1]|=8.25776|
|00000620| 65 2d 31 33 3b 0d 4c 52 | 2e 70 5b 32 5d 3d 35 2e |e-13;.LR|.p[2]=5.|
|00000630| 30 30 30 36 34 65 2d 31 | 31 3b 0d 4c 52 2e 70 5b |00064e-1|1;.LR.p[|
|00000640| 33 5d 3d 32 2e 35 31 31 | 33 38 65 2d 30 39 3b 0d |3]=2.511|38e-09;.|
|00000650| 4c 52 2e 70 5b 34 5d 3d | 37 2e 39 38 30 35 35 65 |LR.p[4]=|7.98055e|
|00000660| 2d 30 38 3b 0d 4c 52 2e | 70 5b 35 5d 3d 2d 32 2e |-08;.LR.|p[5]=-2.|
|00000670| 30 34 31 38 34 65 2d 30 | 39 3b 0d 4c 52 2e 70 5b |04184e-0|9;.LR.p[|
|00000680| 36 5d 3d 31 2e 37 39 31 | 38 31 65 2d 31 31 3b 0d |6]=1.791|81e-11;.|
|00000690| 4c 52 2e 70 5b 37 5d 3d | 2d 36 2e 33 37 39 31 65 |LR.p[7]=|-6.3791e|
|000006a0| 2d 31 34 3b 0d 4c 52 2e | 70 5b 38 5d 3d 38 2e 31 |-14;.LR.|p[8]=8.1|
|000006b0| 30 38 38 38 65 2d 31 37 | 3b 0d 4c 52 2e 70 6f 6c |0888e-17|;.LR.pol|
|000006c0| 79 6e 6f 6d 69 61 6c 45 | 72 72 6f 72 3d 20 20 30 |ynomialE|rror= 0|
|000006d0| 2e 32 32 36 33 3b 09 2f | 2a 20 52 4d 53 20 65 72 |.2263;./|* RMS er|
|000006e0| 72 6f 72 20 6f 66 20 66 | 69 74 20 2a 2f 0d 2f 2a |ror of f|it */./*|
|000006f0| 20 63 6f 65 66 66 69 63 | 69 65 6e 74 73 20 6f 66 | coeffic|ients of|
|00000700| 20 71 75 61 64 72 61 74 | 69 63 20 66 69 74 20 2a | quadrat|ic fit *|
|00000710| 2f 0d 2f 2a 20 4c 28 56 | 29 3d 71 5b 30 5d 2b 71 |/./* L(V|)=q[0]+q|
|00000720| 5b 31 5d 2a 56 2b 71 5b | 32 5d 2a 56 2a 56 b1 71 |[1]*V+q[|2]*V*V.q|
|00000730| 75 61 64 72 61 74 69 63 | 45 72 72 6f 72 20 2a 2f |uadratic|Error */|
|00000740| 0d 4c 52 2e 71 5b 30 5d | 3d 34 2e 38 36 32 38 35 |.LR.q[0]|=4.86285|
|00000750| 3b 0d 4c 52 2e 71 5b 31 | 5d 3d 2d 30 2e 32 30 31 |;.LR.q[1|]=-0.201|
|00000760| 32 36 36 3b 0d 4c 52 2e | 71 5b 32 5d 3d 30 2e 30 |266;.LR.|q[2]=0.0|
|00000770| 30 31 32 35 39 39 38 3b | 0d 4c 52 2e 71 75 61 64 |0125998;|.LR.quad|
|00000780| 72 61 74 69 63 45 72 72 | 6f 72 3d 20 20 32 2e 35 |raticErr|or= 2.5|
|00000790| 34 39 33 3b 09 2f 2a 20 | 52 4d 53 20 65 72 72 6f |493;./* |RMS erro|
|000007a0| 72 20 6f 66 20 66 69 74 | 20 2a 2f 0d 2f 2a 20 63 |r of fit| */./* c|
|000007b0| 6f 65 66 66 69 63 69 65 | 6e 74 73 20 6f 66 20 70 |oefficie|nts of p|
|000007c0| 6f 77 65 72 20 6c 61 77 | 20 66 69 74 20 2a 2f 0d |ower law| fit */.|
|000007d0| 2f 2a 20 4c 28 56 29 3d | 70 6f 77 65 72 5b 30 5d |/* L(V)=|power[0]|
|000007e0| 2b 52 65 63 74 69 66 79 | 28 70 6f 77 65 72 5b 31 |+Rectify|(power[1|
|000007f0| 5d 2b 70 6f 77 65 72 5b | 32 5d 2a 56 29 5e 70 6f |]+power[|2]*V)^po|
|00000800| 77 65 72 5b 33 5d b1 70 | 6f 77 65 72 45 72 72 6f |wer[3].p|owerErro|
|00000810| 72 20 2a 2f 0d 2f 2a 20 | 77 68 65 72 65 20 52 65 |r */./* |where Re|
|00000820| 63 74 69 66 79 28 78 29 | 3d 78 20 69 66 20 78 b3 |ctify(x)|=x if x.|
|00000830| 30 2c 20 61 6e 64 20 52 | 65 63 74 69 66 79 28 78 |0, and R|ectify(x|
|00000840| 29 3d 30 20 6f 74 68 65 | 72 77 69 73 65 20 2a 2f |)=0 othe|rwise */|
|00000850| 0d 2f 2a 20 50 65 6c 6c | 69 20 26 20 5a 68 61 6e |./* Pell|i & Zhan|
|00000860| 67 20 28 31 39 39 31 29 | 20 45 71 73 2e 39 26 31 |g (1991)| Eqs.9&1|
|00000870| 30 20 75 73 65 20 73 79 | 6d 62 6f 6c 73 20 76 3d |0 use sy|mbols v=|
|00000880| 56 2f 32 35 35 2c 20 61 | 6c 70 68 61 3d 70 6f 77 |V/255, a|lpha=pow|
|00000890| 65 72 5b 30 5d 2c 20 62 | 65 74 61 3d 70 6f 77 65 |er[0], b|eta=powe|
|000008a0| 72 5b 31 5d 2c 20 6b 61 | 70 70 61 3d 70 6f 77 65 |r[1], ka|ppa=powe|
|000008b0| 72 5b 32 5d 2a 32 35 35 | 2c 20 67 61 6d 6d 61 3d |r[2]*255|, gamma=|
|000008c0| 70 6f 77 65 72 5b 33 5d | 20 2a 2f 0d 4c 52 2e 70 |power[3]| */.LR.p|
|000008d0| 6f 77 65 72 5b 30 5d 3d | 2d 30 2e 30 36 31 35 34 |ower[0]=|-0.06154|
|000008e0| 32 31 3b 0d 4c 52 2e 70 | 6f 77 65 72 5b 31 5d 3d |21;.LR.p|ower[1]=|
|000008f0| 2d 33 2e 33 38 35 35 34 | 3b 0d 4c 52 2e 70 6f 77 |-3.38554|;.LR.pow|
|00000900| 65 72 5b 32 5d 3d 30 2e | 30 33 30 35 30 31 37 3b |er[2]=0.|0305017;|
|00000910| 0d 4c 52 2e 70 6f 77 65 | 72 5b 33 5d 3d 32 2e 34 |.LR.powe|r[3]=2.4|
|00000920| 38 38 36 36 3b 0d 4c 52 | 2e 70 6f 77 65 72 45 72 |8866;.LR|.powerEr|
|00000930| 72 6f 72 3d 20 20 30 2e | 32 36 31 36 3b 09 2f 2a |ror= 0.|2616;./*|
|00000940| 20 52 4d 53 20 65 72 72 | 6f 72 20 6f 66 20 66 69 | RMS err|or of fi|
|00000950| 74 20 2a 2f 0d 2f 2a 20 | 63 6f 65 66 66 69 63 69 |t */./* |coeffici|
|00000960| 65 6e 74 73 20 6f 66 20 | 70 6f 77 65 72 20 6c 61 |ents of |power la|
|00000970| 77 20 66 69 74 2c 20 77 | 69 74 68 20 66 69 78 65 |w fit, w|ith fixe|
|00000980| 64 20 65 78 70 6f 6e 65 | 6e 74 20 2a 2f 0d 2f 2a |d expone|nt */./*|
|00000990| 20 4c 28 56 29 3d 66 69 | 78 65 64 50 6f 77 65 72 | L(V)=fi|xedPower|
|000009a0| 5b 30 5d 2b 52 65 63 74 | 69 66 79 28 66 69 78 65 |[0]+Rect|ify(fixe|
|000009b0| 64 50 6f 77 65 72 5b 31 | 5d 2b 66 69 78 65 64 50 |dPower[1|]+fixedP|
|000009c0| 6f 77 65 72 5b 32 5d 2a | 56 29 5e 66 69 78 65 64 |ower[2]*|V)^fixed|
|000009d0| 50 6f 77 65 72 5b 33 5d | b1 66 69 78 65 64 50 6f |Power[3]|.fixedPo|
|000009e0| 77 65 72 45 72 72 6f 72 | 20 2a 2f 0d 4c 52 2e 66 |werError| */.LR.f|
|000009f0| 69 78 65 64 50 6f 77 65 | 72 5b 30 5d 3d 2d 30 2e |ixedPowe|r[0]=-0.|
|00000a00| 37 36 34 30 35 38 3b 0d | 4c 52 2e 66 69 78 65 64 |764058;.|LR.fixed|
|00000a10| 50 6f 77 65 72 5b 31 5d | 3d 2d 32 2e 39 36 37 38 |Power[1]|=-2.9678|
|00000a20| 35 3b 0d 4c 52 2e 66 69 | 78 65 64 50 6f 77 65 72 |5;.LR.fi|xedPower|
|00000a30| 5b 32 5d 3d 30 2e 30 33 | 31 30 31 36 34 3b 0d 4c |[2]=0.03|10164;.L|
|00000a40| 52 2e 66 69 78 65 64 50 | 6f 77 65 72 5b 33 5d 3d |R.fixedP|ower[3]=|
|00000a50| 20 20 32 2e 32 38 3b 0d | 4c 52 2e 66 69 78 65 64 | 2.28;.|LR.fixed|
|00000a60| 50 6f 77 65 72 45 72 72 | 6f 72 3d 20 20 31 2e 31 |PowerErr|or= 1.1|
|00000a70| 39 38 36 3b 09 2f 2a 20 | 52 4d 53 20 65 72 72 6f |986;./* |RMS erro|
|00000a80| 72 20 6f 66 20 66 69 74 | 20 2a 2f 0d 4c 52 2e 72 |r of fit| */.LR.r|
|00000a90| 3d 30 2e 30 32 38 32 34 | 30 36 3b 0d 4c 52 2e 67 |=0.02824|06;.LR.g|
|00000aa0| 3d 30 2e 31 34 39 38 38 | 33 3b 0d 4c 52 2e 62 3d |=0.14988|3;.LR.b=|
|00000ab0| 30 2e 38 32 31 38 37 37 | 3b 0d 4c 52 2e 67 61 69 |0.821877|;.LR.gai|
|00000ac0| 6e 41 63 63 75 72 61 63 | 79 3d 2d 30 2e 30 33 33 |nAccurac|y=-0.033|
|00000ad0| 37 39 30 35 3b 0d 4c 52 | 2e 67 6d 3d 33 2e 38 35 |7905;.LR|.gm=3.85|
|00000ae0| 35 34 33 3b 09 2f 2a 20 | 54 68 65 20 6d 6f 6e 69 |543;./* |The moni|
|00000af0| 74 6f 72 27 73 20 63 6f | 6e 74 72 61 73 74 20 67 |tor's co|ntrast g|
|00000b00| 61 69 6e 2e 20 2a 2f 0d | 4c 52 2e 56 4d 69 6e 3d |ain. */.|LR.VMin=|
|00000b10| 20 20 30 3b 09 2f 2a 20 | 6d 69 6e 69 6d 75 6d 20 | 0;./* |minimum |
|00000b20| 76 61 6c 75 65 20 74 68 | 61 74 20 63 61 6e 20 62 |value th|at can b|
|00000b30| 65 20 6c 6f 61 64 65 64 | 20 69 6e 74 6f 20 44 41 |e loaded| into DA|
|00000b40| 43 20 2a 2f 0d 4c 52 2e | 56 4d 61 78 3d 32 35 35 |C */.LR.|VMax=255|
|00000b50| 3b 09 2f 2a 20 6d 61 78 | 69 6d 75 6d 20 76 61 6c |;./* max|imum val|
|00000b60| 75 65 20 74 68 61 74 20 | 63 61 6e 20 62 65 20 6c |ue that |can be l|
|00000b70| 6f 61 64 65 64 20 69 6e | 74 6f 20 44 41 43 20 2a |oaded in|to DAC *|
|00000b80| 2f 0d 4c 52 2e 4c 4d 69 | 6e 3d 20 20 20 2d 30 2e |/.LR.LMi|n= -0.|
|00000b90| 30 36 3b 09 2f 2a 20 6c | 75 6d 69 6e 61 6e 63 65 |06;./* l|uminance|
|00000ba0| 20 61 74 20 56 4d 69 6e | 20 2a 2f 0d 4c 52 2e 4c | at VMin| */.LR.L|
|00000bb0| 4d 61 78 3d 20 20 20 33 | 39 2e 37 30 3b 09 2f 2a |Max= 3|9.70;./*|
|00000bc0| 20 6c 75 6d 69 6e 61 6e | 63 65 20 61 74 20 56 4d | luminan|ce at VM|
|00000bd0| 61 78 20 2a 2f 0d 4c 52 | 2e 4c 42 61 63 6b 67 72 |ax */.LR|.LBackgr|
|00000be0| 6f 75 6e 64 3d 20 20 20 | 39 2e 37 33 31 3b 09 2f |ound= |9.731;./|
|00000bf0| 2a 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 6c 75 6d |* backgr|ound lum|
|00000c00| 69 6e 61 6e 63 65 20 64 | 75 72 69 6e 67 20 63 61 |inance d|uring ca|
|00000c10| 6c 69 62 72 61 74 69 6f | 6e 20 2a 2f 0d 4c 52 2e |libratio|n */.LR.|
|00000c20| 56 42 61 63 6b 67 72 6f | 75 6e 64 3d 31 39 33 3b |VBackgro|und=193;|
|00000c30| 09 2f 2a 20 62 61 63 6b | 67 72 6f 75 6e 64 20 6e |./* back|ground n|
|00000c40| 75 6d 62 65 72 20 75 73 | 65 64 20 64 75 72 69 6e |umber us|ed durin|
|00000c50| 67 20 63 61 6c 69 62 72 | 61 74 69 6f 6e 20 2a 2f |g calibr|ation */|
|00000c60| 0d 4c 52 2e 72 61 6e 67 | 65 53 65 74 3d 30 3b 09 |.LR.rang|eSet=0;.|
|00000c70| 2f 2a 20 69 6e 64 69 63 | 61 74 65 20 74 68 61 74 |/* indic|ate that|
|00000c80| 20 72 61 6e 67 65 20 70 | 61 72 61 6d 65 74 65 72 | range p|arameter|
|00000c90| 73 20 68 61 76 65 20 79 | 65 74 20 74 6f 20 62 65 |s have y|et to be|
|00000ca0| 20 73 65 74 20 2a 2f 0d | 4c 52 2e 4c 2e 65 78 69 | set */.|LR.L.exi|
|00000cb0| 73 74 73 3d 30 3b 09 2f | 2a 20 69 6e 64 69 63 61 |sts=0;./|* indica|
|00000cc0| 74 65 20 74 68 61 74 20 | 6c 75 6d 69 6e 61 6e 63 |te that |luminanc|
|00000cd0| 65 20 74 61 62 6c 65 20 | 68 61 73 20 79 65 74 20 |e table |has yet |
|00000ce0| 74 6f 20 62 65 20 69 6e | 69 74 69 61 6c 69 7a 65 |to be in|itialize|
|00000cf0| 64 20 2a 2f 0d 00 00 00 | 00 00 00 00 00 00 00 00 |d */....|........|
|00000d00| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000d10| 63 68 61 72 20 2a 29 3b | 0d 69 6e 74 20 73 74 72 |char *);|.int str|
|00000d20| 63 6d 70 28 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |cmp(cons|t char *|
|00000d30| 12 4c 75 6d 69 6e 61 6e | 63 65 52 65 63 6f 72 64 |.Luminan|ceRecord|
|00000d40| 31 2e 68 6f 02 00 00 00 | 54 45 58 54 43 57 49 45 |1.ho....|TEXTCWIE|
|00000d50| 00 00 54 45 58 54 43 57 | 49 45 01 00 01 2c 00 00 |..TEXTCW|IE...,..|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 a7 04 8b a3 00 00 | 0c 75 00 00 01 ac 20 63 |........|.u.... c|
|00000d80| 6f 6e 73 74 20 63 68 61 | 72 20 2a 29 3b 0d 73 69 |onst cha|r *);.si|
|00000d90| 7a 65 5f 74 20 73 74 72 | 63 73 70 6e 28 63 6f 6e |ze_t str|cspn(con|
|00000da0| 73 74 20 63 68 61 72 20 | 2a 2c 20 63 6f 6e 73 74 |st char |*, const|
|00000db0| 20 63 68 61 72 20 2a 29 | 3b 0d 63 68 61 72 20 2a | char *)|;.char *|
|00000dc0| 73 74 72 65 72 72 6f 72 | 28 69 6e 74 29 3b 0d 73 |strerror|(int);.s|
|00000dd0| 69 7a 65 5f 74 20 73 74 | 72 6c 65 6e 28 63 6f 6e |ize_t st|rlen(con|
|00000de0| 73 74 20 63 68 61 72 20 | 2a 29 3b 0d 63 68 61 72 |st char |*);.char|
|00000df0| 20 2a 73 74 72 6e 63 61 | 74 28 63 68 61 72 20 2a | *strnca|t(char *|
|00000e00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 19 5a 60 |...H..Mo|naco..Z`|
|00000e10| 01 b9 37 40 01 b9 6d b0 | 00 00 00 00 00 19 5d 50 |..7@..m.|......]P|
|00000e20| 01 d3 9d 90 00 09 00 06 | 00 04 00 32 00 c6 02 69 |........|...2...i|
|00000e30| 02 c2 00 a1 00 1d 01 8c | 02 7c aa c8 35 09 00 00 |........|.|..5...|
|00000e40| 00 b2 00 00 00 c1 00 00 | 06 3a 01 00 00 00 00 1e |........|.:......|
|00000e50| 00 32 00 c6 02 69 02 c2 | 00 a1 00 1d 01 8c 02 7c |.2...i..|.......||
|00000e60| 00 00 06 3a 00 00 00 00 | 00 00 00 00 00 00 00 00 |...:....|........|
|00000e70| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 01 ae |.....n..|.n...>..|
|00000e80| 14 28 36 b8 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.(6.....|.>..MPSR|
|00000e90| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000ea0| 03 f0 ff ff 00 00 00 4c | 01 b0 6f e8 00 00 00 00 |.......L|..o.....|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+